package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {

    /**
     * 根据条件查询分页数据
     * 注意：当前中州养老环境与mybatis环境有冲突，主要是方法参数大于1个必须给每个参数起别名@Param(“别名”)，否则mybatis不识别多个参数映射
     * @param name
     * @param status
     * @return
     */
    Page<NursingProjectVo> getByPage(@Param("name") String name,
                                        @Param("status") Integer status);

    void add(NursingProject nursingProject);

    NursingProject selectById(Long id);

    void update(NursingProject nursingProject);
}